<?php
 
include 'db.php';
include 'cart.php';
 
$id_session = session_id();
 
$query = "select * from items";
$result = mysql_query($query);
 
echo 'Shop items<br>';
echo '- - - - -<br>';
 
while($row = mysql_fetch_array($result)) {
	echo $row["itemName"];
	echo ' - ';
	echo $row["itemDesc"];
	echo " <a href='cart.php?action=add_item&id=".$row["itemId"]."'>Add Item</a><br>";
	echo " <a href='cart.php?action=remove_item&id=".$row["itemId"]."'>Remove Item</a><br>";
}
 
echo '<br> Items in basket<br>- - - - -<br>';
ShowCart();
 
?>